cmake_minimum_required(VERSION 3.10)

include_directories(${PROJECT_SOURCE_DIR}/src)

add_executable(prepare  prepare.c)
target_link_libraries(prepare quadmath m)

add_executable(build_const_def  build_const_def.c)
target_link_libraries(build_const_def quadmath m)

add_executable(make_exp_tab_prec52  make_exp_tab.c)
target_link_libraries(make_exp_tab_prec52 quadmath)
target_compile_definitions(make_exp_tab_prec52 PUBLIC PREC_52)

add_executable(make_exp_tab_prec61  make_exp_tab.c)
target_link_libraries(make_exp_tab_prec61 quadmath)
target_compile_definitions(make_exp_tab_prec61 PUBLIC PREC_61)

add_executable(make_exp_tab_prec64  make_exp_tab.c)
target_link_libraries(make_exp_tab_prec64 quadmath)
target_compile_definitions(make_exp_tab_prec64 PUBLIC PREC_64)
